import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

            Scanner sc = new Scanner(System.in);

            while(sc.hasNextLine()){
                String s1 = sc.nextLine();
                int index = s1.lastIndexOf(' ');
                String str = s1.substring(index+1);
                System.out.print(str.length());
            }

    }
}